export enum SyncAction {
  REMOTE_CREATE_TO_LOCAL = 'r_c_l',
  REMOTE_UPDATE_TO_LOCAL = 'r_u_l',
  REMOTE_DELETE_TO_LOCAL = 'r_d_l',
  LOCAL_CREATE_TO_REMOTE = 'l_c_r',
  LOCAL_UPDATE_TO_REMOTE = 'l_u_r',
  LOCAL_DELETE_TO_REMOTE = 'l_d_r',
};

export enum SyncLocalObj {
  BRAND = "brands",
  BRAND_WAREHOUSE = "brand_warehouses",
  PRODUCT = "products",
  PRODUCT_SPEC = "product_specs",
  PRODUCT_ATTRIBUTE_KEY = "product_attribute_keys",
};

export enum SyncLocalPKName {
  BRAND = "id",
  BRAND_WAREHOUSE = "id",
  PRODUCT = "id",
  PRODUCT_SPEC = "id",
  PRODUCT_ATTRIBUTE_KEY = "id",
};

export enum SyncLocalFields {
  BRAND = "id,name",
  BRAND_WAREHOUSE = "remote_pk,origin,name,tel,linkman,address,lng,lat,city_code,deadline,storage_mode,store_id,p_store_id,permission_id,delivery_modes",
};

export enum SyncRemoteObj {
  BRAND = "webpos_brand",
  BRAND_WAREHOUSE = "inventory_warehouse",
  PRODUCT = "webpos_prod",
  PRODUCT_SPEC = "webpos_prod_sku",
  PRODUCT_ATTRIBUTE_KEY = "webpos_property_group",
};

export enum SyncRemotePKName {
  BRAND = "sg_id",
  BRAND_WAREHOUSE = "id",
  PRODUCT = "id",
  PRODUCT_SPEC = "id",
  PRODUCT_ATTRIBUTE_KEY = "id",
};

export enum SyncRemoteFields {
  BRAND = "sg_id,store_group_name",
  BRAND_WAREHOUSE =  "id,data_type,name,mobile,contact,address,longitude,latitude,city_code,deadline,storage_mode,store_id,p_store_id,permission_id,pickUp$delivery_modes,cityExpress$delivery_modes,ordinaryExpress$delivery_modes",
};